.light {
  &.login-wrapper {
    background-color: white;
    background-image: url('@/assets/assets-login-bg-white.png');
  }
}

.dark {
  &.login-wrapper {
    background-color: var(--td-bg-color-page);
    background-image: url('@/assets/assets-login-bg-black.png');
  }
}


.login-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: 100%;
  position: relative;
}

.login-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 80%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 500px;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 9px 20px rgba(0, 0, 0, 0.1);

  @media screen and (min-width: 1920px) {
    left: 1280px;
    transform: translateY(-50%);
  }

  @media screen and (max-width: 767px) {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
  }
}

.margin-one {
  position: absolute;
  margin-top: 100px;
  margin-left: 40px;
  width: 270px;
  height: 44px;
  align-items: center;
  color: rgba(0, 0, 0, 0.9);
  font-family: "Microsoft YaHei";
  font-weight: 700;
  font-size: 30px;
  line-height: 44px;
}

.margin-no {
  position: absolute;
  margin-top: 53px;
  margin-left: 40px;
  width: 78px;
  height: 44px;
  display: flex;
  align-items: center;
  color: rgba(79, 79, 79, 0.9);
  font-family: "Microsoft YaHei";
  font-weight: 400;
  font-size: 26px;
  line-height: 44px;
}

.item-container {
  position: absolute;
  margin-top: 193px;
  margin-left: 40px;
  width: 400px;

  @media screen and (max-width: 767px) {
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
  }

  .check-container {
    display: flex;
    align-items: center;

    &.remember-pwd {
      margin-bottom: var(--td-comp-margin-l);
      justify-content: space-between;
    }

    span {
      color: var(--td-brand-color);

      &:hover {
        cursor: pointer;
      }
    }
  }

  .verification-code {
    display: flex;
    align-items: center;

    :deep(.t-form__controls) {
      width: 100%;

      button {
        flex-shrink: 0;
        margin-left: var(--td-comp-margin-l);
        width: 128px;
      }
    }
  }

  .btn-container {
    margin-top: var(--td-comp-margin-xxxxl);
  }
}

.switch-container {
  margin-top: var(--td-comp-margin-xxl);

  .tip {
    font: var(--td-font-body-medium);
    color: var(--td-brand-color);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-right: var(--td-comp-margin-l);

    &:last-child {
      &::after {
        display: none;
      }
    }

    &::after {
      content: '';
      display: block;
      width: 1px;
      height: 12px;
      background: var(--td-component-stroke);
      margin-left: var(--td-comp-margin-l);
    }
  }
}

.check-container {
  font: var(--td-font-body-medium);
  color: var(--td-text-color-secondary);

  .tip {
    float: right;
    font: var(--td-font-body-medium);
    color: var(--td-brand-color);
  }
}

.copyright {
  font: var(--td-font-body-medium);
  position: absolute;
  left: 5%;
  bottom: 64px;
  color: var(--td-text-color-secondary);
}

@media screen and (max-height: 700px) {
  .copyright {
    display: none;
  }
}

@media screen and (max-width: 767px) {

  .margin-one,
  .margin-no {
    margin-left: 10%;
  }

  .item-container {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    margin-top: 150px;
  }
}